package com.sinothk.gpserver.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sinothk.gpserver.modules.comm.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户相关
 * </p>
 *
 * @author Liang Y.t.
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="UserEntity对象", description="用户相关")
public class UserEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "手机号码")
    private String phoneNum;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "头像")
    private String userAvatar;

    @ApiModelProperty(value = "男/女")
    private String sex;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "0：正常；1：禁用")
    private Integer state;

    @ApiModelProperty(value = "逻辑删除：0未删除;1删除;")
    private Integer deleted;

    @ApiModelProperty(value = "角色信息")
    @TableField(exist = false)
    private String roles;

    @ApiModelProperty(value = "房卡数")
    private Integer roomCards;
}
